package com.mxpio.erp.common.equipment.service;

import com.mxpio.erp.common.equipment.entity.KnowledgeBase;
import com.mxpioframework.common.vo.Result;
import com.mxpioframework.system.service.BaseService;
import org.springframework.data.domain.Page;

import java.util.List;

public interface KnowledgeBaseService extends BaseService<KnowledgeBase> {

    Result<KnowledgeBase> upgrade(KnowledgeBase entity);

    Result<KnowledgeBase> accept(String id);

    Result<KnowledgeBase> reject(String id,String auditView);

    Result<List<KnowledgeBase>> history(String id);

    Result<Page<KnowledgeBase>> historyPage(String id,Integer pageSize,Integer pageNo);

    Result<?> removeByFamilys(String familys);
}
